﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DalatCooking.Core;
public partial class Widgets_Html : System.Web.UI.UserControl
{
    public int ModuleID { get; set; }
    public string Name { get; set; }
    public string Title { get; set; }
    public string Params { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        if (!IsPostBack)
        {
            Module m = ModuleManager.FindById(ModuleID);
            if (m != null)
                lblParams.Text = m.Params;
        }
    }
}